
// 引入路由
const upload = require('../upload.js') // 上传模块
const pdf = require('../pdf.js'); // 生成PDF
const text = require('./productPath.js')
const svgtopng = require('./svgtopng.js') // svg 转 png
const productPage = require('./productPage.js') // 上传压缩包
const textToPath = require('./textToPath.js')// 生成文字
const replaceImg = require('./replaceImg') // 替换图片
const textToPathCopy = require('./textToPathCopy.js')// 生成文字
const psd = require('./psdtosvg.js') // psd 转svg
const htmlToPdf = require('./htmlToPdf.js') 

//mockjs 模拟数据
const mock = require('./mock.js')

module.exports = app => {
  // 挂载路由
  app.use('/text', text)
  app.use('/', upload)
  app.use('/', pdf)
  app.use('/', svgtopng)
  app.use('/', productPage)
  app.use('/', textToPath)
  app.use('/', replaceImg)
  app.use('/', textToPathCopy)
  app.use('/', psd)
  app.use('/htmlToPdf', htmlToPdf)
  app.use('/', mock)
}